﻿import request from '/@/utils/request';
enum Api {
    AddBusPAttributeInfo = '/api/busPAttributeInfo/add',
    DeleteBusPAttributeInfo = '/api/busPAttributeInfo/delete',
    UpdateBusPAttributeInfo = '/api/busPAttributeInfo/update',
    PageBusPAttributeInfo = '/api/busPAttributeInfo/page',
    GetBusAttributeDropdown = '/api/busPAttributeInfo/BusAttributeDropdown'
}

// 增加物料属性值管理
export const addBusPAttributeInfo = (params?: any) =>
    request({
        url: Api.AddBusPAttributeInfo,
        method: 'post',
        data: params,
    });

// 删除物料属性值管理
export const deleteBusPAttributeInfo = (params?: any) =>
    request({
        url: Api.DeleteBusPAttributeInfo,
        method: 'post',
        data: params,
    });

// 编辑物料属性值管理
export const updateBusPAttributeInfo = (params?: any) =>
    request({
        url: Api.UpdateBusPAttributeInfo,
        method: 'post',
        data: params,
    });

// 分页查询物料属性值管理
export const pageBusPAttributeInfo = (params?: any) =>
    request({
        url: Api.PageBusPAttributeInfo,
        method: 'post',
        data: params,
    });

export const getBusAttributeDropdown = () =>
    request({
        url: Api.GetBusAttributeDropdown,
        method: 'get'
    });

